package com.seg.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.seg.common.annotation.Excel;
import com.seg.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 备件入库对象 t_in_warehouse
 *
 * @author seg
 * @date 2023-07-04
 */
public class TInWarehouse extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 物料号
     */
    @Excel(name = "物料号")
    @NotBlank(message = "物料号不能为空")
    private String materialNo;

    /**
     * 产线
     */
//    @Excel(name = "产线")
    private String line;

    /**
     * 工位
     */
//    @Excel(name = "工位")
    private String station;

    /**
     * 出库类型
     */
//    @Excel(name = "出库类型")
    private String outType;

    /**
     * 出库数量
     */
    @Excel(name = "入库数量")
    @NotNull(message = "入库数量不能为空")
    private Long outNum;

    /**
     * 是否删除  0正常  2删除
     */
    private String delFlag;

    @Excel(name = "入库人")
    private String createBy;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入库时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setMaterialNo(String materialNo) {
        this.materialNo = materialNo;
    }

    public String getMaterialNo() {
        return materialNo;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public String getLine() {
        return line;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public String getStation() {
        return station;
    }

    public void setOutType(String outType) {
        this.outType = outType;
    }

    public String getOutType() {
        return outType;
    }

    public void setOutNum(Long outNum) {
        this.outNum = outNum;
    }

    public Long getOutNum() {
        return outNum;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("materialNo", getMaterialNo())
                .append("line", getLine())
                .append("station", getStation())
                .append("outType", getOutType())
                .append("outNum", getOutNum())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
